import { defineStore } from 'pinia';
import { ref, computed } from 'vue';
import { getClassifiedMsg } from '@/api/modules/system/sysMessage';
export const useMessageStore = defineStore('message', () => {
  const messageData = ref({});
  async function setMsgData() {
    const { data } = await getClassifiedMsg();
    messageData.value = data;
  }

  const msgData = computed(() => messageData.value);

  return {
    messageData,
    setMsgData,
    msgData
  };
});
